<?php
    // +----------------------------------------------------------------------
    // | Created by PHPstorm: JRKAdmin框架 [ JRKAdmin ]
    // +----------------------------------------------------------------------
    // | Copyright (c) 2019~2022 [LuckyHHY] All rights reserved.
    // +----------------------------------------------------------------------
    // | SiteUrl: http://www.luckyhhy.cn
    // +----------------------------------------------------------------------
    // | Author: LuckyHhy <jackhhy520@qq.com>
    // +----------------------------------------------------------------------
    // | Date: 2020/1/14-15:59
    // +----------------------------------------------------------------------
    // | Description:  
    // +----------------------------------------------------------------------


    namespace app\admin\controller;


    use app\admin\model\Logs;
    use app\admin\service\AdminUserService;

    class Log extends AdminBase
    {


        public function initialize()
        {
            parent::initialize(); // TODO: Change the autogenerated stub

            $this->model=new Logs();
            $this->del="日志记录";
        }

        /**
         * @return mixed
         * @throws \think\db\exception\DataNotFoundException
         * @throws \think\db\exception\ModelNotFoundException
         * @throws \think\exception\DbException
         * @author: LuckyHhy <jackhhy520@qq.com>
         * @date: 2020/1/14
         * @name: index
         * @describe:获取分页数据
         */
        public function index(){
            //获取分页数据
            if (IS_AJAX){
                return $this->model->getAdminPageData($this->param);
            }

            $user=AdminUserService::userList();
            $this->assign("user",$user);
            return $this->fetch();
        }




    }